<template>
  <backContainer>
    <div>
      <examination-answer
        ref="examination"
        :loading="loading"
        :examInfo="examInfo"
        :titleName="titleName"
        :endTime="null"
      ></examination-answer>
    </div>
  </backContainer>
</template>

<script>
import examinationAnswer from '@/views/home/components/examinationAnswer'
import { getExamPaperApi } from '@/api/ExaminationModule/exam'

export default {
  name: 'examDetial',
  components: {
    examinationAnswer
  },
  data() {
    return {
      titleName: '考核详情',
      examInfo: {},
      loading: false
    }
  },
  created() {
    this.getExaminationAnswerList()
  },
  methods: {
    async getExaminationAnswerList() {
      this.loading = true
      let res
      try {
        res = await getExamPaperApi(this.$route.query.id)
      } catch (e) {
        console.error(e)
      }
      if (res) {
        this.examInfo = res.examPaper
        this.loading = false
      } else {
        this.loading = false
      }
    }
  }
}
</script>

<style scoped>
</style>
